#pragma once

#include <iostream>

// 时间类
class Timestamp {
public:
  Timestamp();
  explicit Timestamp(const int64_t microSecondsSinceEpoch);
  static Timestamp now();
  std::string toString() const;
  int32_t operator- (const Timestamp& other) const {
    return static_cast<int32_t>((m_microSecondsSinceEpoch - other.m_microSecondsSinceEpoch) / 1000);
  } 
private:
  int64_t m_microSecondsSinceEpoch;
};